package com.usts2022.classcostrecord.entity;


import java.io.Serializable;

public class User implements Serializable {

    private Long id;
    private String account;
    private String password;
    private String name;
    private Integer classCode;
    private Integer isClassCommittee;
    private Integer isReporter;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getClassCode() {
        return classCode;
    }

    public void setClassCode(Integer classCode) {
        this.classCode = classCode;
    }

    public Integer getIsClassCommittee() {
        return isClassCommittee;
    }

    public void setIsClassCommittee(Integer isClassCommittee) {
        this.isClassCommittee = isClassCommittee;
    }

    public Integer getIsReporter() {
        return isReporter;
    }

    public void setIsReporter(Integer isReporter) {
        this.isReporter = isReporter;
    }

    public User() {
    }

    public User(Long id, String account, String password, String name, Integer classCode, Integer isClassCommittee, Integer isReporter) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.name = name;
        this.classCode = classCode;
        this.isClassCommittee = isClassCommittee;
        this.isReporter = isReporter;
    }


    public User(String account, String password, String name, Integer classCode, Integer isClassCommittee, Integer isReporter) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.classCode = classCode;
        this.isClassCommittee = isClassCommittee;
        this.isReporter = isReporter;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", classCode=" + classCode +
                ", isClassCommittee=" + isClassCommittee +
                ", isReporter=" + isReporter +
                '}';
    }
}
